package com.hl.sfzy.service.impl;

import com.hl.sfzy.entity.Firm;
import com.hl.sfzy.entity.User;
import com.hl.sfzy.mapper.FirmMapper;
import com.hl.sfzy.mapper.FmMapper;
import com.hl.sfzy.service.FirmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @ClassName FirmServiceImpl
 * @Description TODO
 * @Author Jerry
 * @Date 2024年01月15日 11:02
 * @Version 1.0
 */
@Service("FirmService")
public class FirmServiceImpl implements FirmService {
    @Autowired
    private FirmMapper FirmMapper;
    @Override
    public void add(Firm entity) throws Exception {

    }

    @Override
    public void edit(Firm entity) {
        FirmMapper.update(entity);
    }

    @Override
    public void remove(Integer id) {

    }

    @Override
    public void removeBatch(Integer[] ids) {

    }

    @Override
    public List<Firm> find(Firm entity) {
        return null;
    }

    @Override
    public Map<String, Object> findPage(Integer pageNum, Integer pageSize, Firm entity) {
        return null;
    }

    @Override
    public Firm findById(Integer id ) {
        Firm firm =FirmMapper.selectById(1);
        return firm;
    }
}
